<?php

// +----------------------------------------------------------------------
// | 新闻信息模型
// +----------------------------------------------------------------------

namespace Home\Model;

use Common\Model\Model;

class NewsModel extends Model {

    protected $index=array();

   //首页推荐文章
    public function indextjnews(){
        $data=$this->where(array('iftj'=>true,'status'=>true))->field('title,id,linkurl')->order('sort DESC')->limit(1,5)->select();
        cache('indextjnews',$data);
        return $data;
    }

}
